﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain.BomManage
{
    /// <summary>
    /// 审计日志 
    /// </summary>
    [Table("AuditLog")]
    public class AuditLog : BaseEntity
    {
        /// <summary>
        /// BomId
        /// </summary>
        public long BomId { get; set; }


        /// <summary>
        /// 动作（如：Create、Update、Delete、Export 等）
        /// </summary>
        public string Action { get; set; } = string.Empty;


        /// <summary>
        /// 操作人姓名
        /// </summary>
        public string? OperatorName { get; set; }

        /// <summary>
        /// 操作人ID
        /// </summary>
        public int? OperatorId { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime OperatedAt { get; set; } = DateTime.Now;
    }
}
